<?php

try{
	$pdo = new PDO('mysql:dbname=test;host=localhost;charset=utf8mb4;port=3306','root','root');
}catch(PDOException $pe){
	die($pe->getMessage());
}

